﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="content.aspx.cs" Inherits="Com.CMS263.Web.manage.content" %>
<%@ Import Namespace=" Com.CMS263.PO" %>
<%@ Import Namespace=" Com.CMS263.BLL" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">


    <style>
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	font-size:12px;
	line-height:21px;
}
*,ul{list-style-type:none; margin:0;padding:0;}
#lefttd {
	width: 160px;
}
#menu a{ cursor:pointer;}
#yj_nav0{ 
	margin:-15px 10px 0 10px;
}
#yj_nav0 li{
	background:url(images/tit_bg.gif) no-repeat;
	width:152px;
	
	line-height:24px;
	text-indent:20px;
	font-weight:bold;
	margin-bottom:4px;
}
#yj_nav1{
	width:151px;
	margin-bottom:5px;
}
#yj_nav1 li{
	background:url(images/tit_tb.gif) no-repeat 16px 9px;
	
	line-height:25px;
}
#yj_nav1 li a{
	text-indent:24px;
	text-decoration:none;
	color:#12b0f8;
	width:140px;
	margin:0 auto;
	border-bottom:1px #ccc dashed;
	display:block;
}


#yj_nav2{
	width:140px;
}
#yj_nav2 li{
	background:url(images/tit_tb1.gif) no-repeat 26px 8px;
	
	line-height:25px;
}
#yj_nav2 li a{
	text-indent:33px;
	text-decoration:none;
	color:#666;
	width:140px;
	margin:0 auto;
	display:block;
	border-bottom:none;
	font-weight:normal;
}
#yj_nav3{
	width:140px;
}
#yj_nav3 li{
	background:url(images/tit_tb1.gif) no-repeat 26px 8px;
	
	line-height:25px;
}
#yj_nav3 li a{
	text-indent:33px;
	text-decoration:none;
	color:#666;
	width:140px;
	margin:0 auto;
	margin-left:20px;
	display:block;
	border-bottom:none;
	font-weight:normal;
}

.on ul{display:block;}   
.off ul{display:none;} 

</style>
 <style >
.dtree {font-size: 12.00px; color: #000000;	white-space: nowrap;}
.dtree img  {border: 0px;	vertical-align: middle;}
.dtree a   {color: #000000;	text-decoration: none;}
.dtree a.node{color: #000000;white-space: nowrap;padding: 1px 2px 1px 2px;}
.dtree a.nodeSel {color:#ffffff;white-space: nowrap;	padding: 1px 2px 1px 2px;}
.dtree a.node:hover {color: #000000;	text-decoration: underline;}
.dtree a.nodeSel:hover {color: #ffffff;	text-decoration: underline;}
.dtree a.nodeSel {background-color: #666666;}
.dtree .clip {overflow: hidden;}
.downBorder {border:1px solid #dddddd;	border-style: inset;}
.upBorder {	border: 1px solid #EEEEEE;}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
#lefttd {
	width: 160px;
}
</style>
    <link href="style/main.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="/js/jquery-1.4.2.min.js"></script>
 	<script type="text/javascript">
 	    window.onload = function() {
 	       
 	        checkMenu();

 	        var o = document.getElementById("menu");
 	        var links = o.getElementsByTagName("a");
 	        for (var i = 0; i < links.length; i++) {
 	            links[i].i = i;
 	            links[i].onclick = function() {
 	                if (links[this.i].parentNode.className == "on" || links[this.i].parentNode.className == "") {
 	                    links[this.i].parentNode.className = "off";
 	                } else {
 	                    links[this.i].parentNode.className = "on";
 	                }
 	            }
 	        }
 	    }

	</script>
	<script language="javascript" type="text/javascript">
	    function checkMenu() {

	        var me = "<%=power %>";
	        // alert(me);
	        var menuIds = me.split(",");
	        var asss = $('#menu a');

	        if (me.length > 0) {
	            $.each(asss, function() {
	                var hre = $(this).attr("href");
	                if (hre == undefined)
	                { }
	                else {
	                    for (var i = 0; i < menuIds.length - 1; i++) {
	                        if (menuIds.length > 0) {
	                            var mids = hre.split('=');

	                            if (mids[mids.length - 1] == menuIds[i]) {
	                                // alert(hre.indexOf(menuIds[i]));
	                                // alert((this));
	                                //$(this).parent().parent().remove();
	                                //if (index($(this).parent())) {
	                                remov(this)
	                                // }
	                                // $(this).parent().parent().parent()remove();
	                            }
	                        }

	                    }
	                }

	            });
	        }
	        //alert(asss);
	        
	        //alert($("#ManageSingleArt/AddBaseArt.aspx?pid=4&menuId=6").href);
	       // $("#ManageSingleArt/AddBaseArt.aspx?pid=4&menuId=6").parentNode.attr("class", "style='none'");
	    }
	    function remov(obj) {
	        // alert(index($(obj)));
	        var bro = $(obj).siblings()
	        //alert(bro.length);

	        if (bro.length < 1) {
	         //   alert($(bro));
	        var p = $(obj).parent();
	       // $(obj).remove(p);
	       // alert(p);
            remov(p);
	        }
	        else {
	            $(obj).remove();
	        }
	    }
         
	</script>
</head>
<body  >
    <form id="form1" runat="server">
    
        <div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
                <tr>
                    <td height="100%" valign="top" background="images/9.jpg" id="lefttd" style="display: block;">
                    
                  
                    <span id="menu">
                    <br />
                    <asp:Literal ID="myMenu" EnableViewState="false" runat="server"></asp:Literal>
                     
				
                      <ul id="yj_nav0" style=" margin-top:4px;display:block">
                          <li style="display:block" >
                            管理分类
                            <ul id="yj_nav1">
                            	<li  style=" display:block">
                            		 <a href="manageArtType/AddArtType.aspx" target="help">管理分类</a>
                             	</li>
                             </ul>
                          </li>
                          <li>
                            管理员
                            <ul id="yj_nav1">
                             <li><a href="adminUser/adduser.aspx" target="help"> 管理</a></li>
                             <li  style="display:block"><a href="adminUser/AddUserRole.aspx" target="help"> 角色</a></li>
                             <li style="display:block"><a href="/manage/ManageAttrType/AddAttributeType.aspx" target="help">添加扩展属性分类</a></li>
                             
                             </ul>
                          </li>
                      </ul>
                    </span>
                          
                    </td>
                    <td  bgcolor="#D4d0c8" background="images/main_1.gif" style="width: 16px; height:550px;
                        margin-left: 6px;">
                        <table width="10" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td >
                                    <img src="images/tree/main_dot_1.gif" name="menuSwitch" width="16" height="78" border="0"
                                        id="menuSwitch" onclick="javascript:changeWin();"></td>
                            </tr>
                        </table>
                    </td>
                   
                    <td >
                        <iframe id="help" name="help" height="500px" width="100%" frameborder="0" onload="this.height=window.screen.height +'px'" scrolling="auto" src="right.aspx" 
                           </iframe>
                        <div style="width: 800px;">
                        </div>
                    </td>
                </tr>
            </table>
                  </div>
    </form>
</body>
</html>
